<?php
include_once ('autoload.php');
session_start();
$lang="en";
$user = new client();
if (isset($_GET['LOGOUT'])) {
	if ($_GET['LOGOUT'] == 1) {
		session_destroy();
		if(isset($_GET['lang'])){$lang=$_GET['lang'];}
		header("Location: ../login.php?lang=".$lang);
		exit;
	}
} 
else {
	if ($user->verifySession()==false) {
		if(isset($_GET['lang'])){$lang=$_GET['lang'];}
		header("Location: ../login.php?lang=".$lang);
		exit;
	}
}
?>